package com.example.chessbattleplatform.web.chess_rooms.service.impl;

import com.example.chessbattleplatform.web.chess_rooms.Pojo.Vo.RoomsDataVo;
import com.example.chessbattleplatform.web.chess_rooms.Pojo.Vo.RoomsLimitVo;
import com.example.chessbattleplatform.web.chess_rooms.Pojo.Vo.UpdateRoomVo;
import com.example.chessbattleplatform.web.chess_rooms.Pojo.dto.RoomsDto;

public interface RoomsServiceInterface {
    //列表查询 房间
    RoomsLimitVo listRooms(Long current, Long limit);

    //查询房间
    RoomsDataVo getRoom(Long userId);

    //创建房间
    UpdateRoomVo createRoom(RoomsDto roomsDto, Long userId);

    // 房主 关闭房间
    UpdateRoomVo deleteTheWaitingRoomData(String roomId, Long userId);

    // 玩家 加入房间
    UpdateRoomVo joinRoom(String roomId, Long userId, String password);

    // 玩家 离开房间
    UpdateRoomVo leaveRoom(Long userId);

}
